import Link from 'umi/link';
export default function(){
    const users=[
        {id:1,name:'jackie'},
        {id:2,name:'peter'},
        {id:3,name:'jerry'}
    ];
    return (<div>
        <h2>User-list</h2>
        {users.map((u) => <div key={u.id} ><Link to={`/users/${u.id}`}>{u.name}</Link></div>)}
    </div>)
}